<? /** @var Application_Model_Note $model */ ?>
<? $model = $this->model ?>
<div id="form-notes">
    <input class="input-block-level" type="hidden" value="<?= $model->getNoteId()?>" name="note-id" id="note-id">
    <label for="note-title">Заголовок:</label>
    <input class="input-block-level" type="text" value="<?= $model->getNoteTitle()?>" placeholder="Заголовок" name="note-title" id="note-title">

    <label for="note-type"><i class="icon-tasks"></i>Тип:</label>
    <select id="note-type" name="note-type">
        <? $types = Application_Model_Note::$types; foreach ($types as $typeId => $type) :?>
            <option value="<?=$typeId?>" <?if ($model->getNoteType() == $typeId):?>selected="selected"<? endif; ?>><?= $type ?></option>
        <? endforeach;?>
    </select>
    <div class="form-actions">
        <button type="submit" class="btn btn-primary" onclick="mn.saveNote();">Сохранить</button>
        <button type="button" class="btn" onclick="mn.deleteNote(<?= $model->getNoteId() ?>);">Удалить</button>
    </div>
</div>